<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // const arr = [1, 2, 3, [1, 2, 3]]
        // // console.log(...arr);
        // // console.log([...new Set(arr)]);
        // // const a = arr[0]
        // // const b = arr[1]
        // // const c = arr[2]
        // const [a, b, c, [d, e, f]] = arr
        // // console.log(a);
        // // console.log(b);
        // // console.log(c);
        // console.log(d);


        const obj = {
            uname: 'zs',
            age: 88,
            parents: {
                father: {
                    uname: 'ls',
                    age: 111
                },
                mother: {
                    uname: 'lj',
                    age: 109
                }
            }
        }
        const { parents: { father: { age: fage }, mother: { age: mage } } } = obj
        // const { father, mother } = obj.parents
        // const { parents } = obj
        // const { father, mother } = parents
        // const { age: fage } = father
        // const { age: mage } = mother
        // const fage = father.age
        console.log(fage, mage);
    </script>
</body>

</html>